# import jsonschema
# resp = {"name": "张哈哈",
#         "age": 21,
#         "heigh": 1.76,
#         "is_delete": True,
#         "hobby": ["吃饭", "刷抖音", "睡觉"],
#         "sex": None,
#         "score": {"python": 88, "English": 99}}
# # sachema={"type":"object",
# #          "properties":
# #              {"name":{"cont":"张哈哈"},
# #               "age":{"cont":21},
# #               "heigh":{"cont":1.76},
# #               "is_delete":{"cont":True},
# #               "hobby":{"cont":["吃饭", "刷抖音", "睡觉"]},
# #               "sex":{"cont":None},
# #               "score":{"cont": {"python": 88, "English": 99},"required":["python","English"]}}}
# # ff=jsonschema.validate(instance=resp,schema=sachema)
# # print(ff)
# sachema={"type":"object",
#          "properties":
#              {"name":{"pattern":"哈$"},
#               "age":{"pattern":"^2"},
#               "heigh":{"pattern":"6$"}}}
# ff=jsonschema.validate(instance=resp,schema=sachema)
# print(ff)
